package cn.edu.jxyy.batistest.test;

import cn.edu.jxyy.batistest.mapper.StudentMapper;
import cn.edu.jxyy.batistest.utils.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;

public class Part13_DeleteStudent {
    public static void main(String[] args) {
        SqlSession sqlSession = MyBatisUtils.getSession();
        StudentMapper studentMapper = sqlSession.getMapper(StudentMapper.class);
        studentMapper.deleteStudent(4);
        sqlSession.commit();
        sqlSession.close();
    }
}
